package com.iplay.thezen.templateMethod;

/**
 * @author dangwu
 * @since 2021/9/9 4:47 下午
 */
public class ConcreteClass1 extends AbstractClass{
    private boolean alarmFlag = true;
    @Override
    protected void doSomething() {

    }

    @Override
    protected void doAnything() {

    }

    @Override
    protected void alarm() {

    }

    @Override
    protected boolean isAlarm() {
        return this.alarmFlag;
    }

    //钩子函数
    public void setAlarm(boolean isAlarm){
        this.alarmFlag = isAlarm;
    }
}
